Multithread improvements#205
Conversation
Static memory analysisDefault configuration MTU: 512 B
TOTAL: 34468 B |
|
|
||
| // With `rmw_uxrce_wait_mutex` member `need_to_be_ran` is protected. | ||
| // `session_memory` itself is not protected because it is not modified between | ||
| // rmw_init and rmw_shutdown, and rmw_wait cannot be called concurrently with |
There was a problem hiding this comment.
Maybe we should add a multi-thread section to Programming with rcl and rclc or XRCE-Client Documentation to add this guidelines.
Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
Static memory analysisDefault configuration MTU: 512 B
TOTAL: 34468 B |
1 similar comment
Static memory analysisDefault configuration MTU: 512 B
TOTAL: 34468 B |
| success = uxr_ping_agent_session(&context->session, timeout_ms, attempts); | ||
|
|
||
| item = item->next; | ||
| } while (NULL != item && !success); |
There was a problem hiding this comment.
I still dont like the ping multiple sessions approach.
Maybe we could change this to accept a rmw_context_impl_t as argument? Wich could be NULL.
There was a problem hiding this comment.
Don't understand, can you make a proposal?
…rmw-microxrcedds into fix/lock_wait_session
Static memory analysisDefault configuration MTU: 512 B
TOTAL: 34468 B |
Static memory analysisDefault configuration MTU: 512 B
TOTAL: 34468 B |
|
@mergify backport foxy main |
* Minor fixes * Add rmw_wait mutex * Protect static_buffer_memory access * Use new ping API * Update ci.yml * Fix * Fix linter * Apply suggestions from code review Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> * Fix * Delete old unlock mutex * Update .github/workflows/ci.yml Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> Co-authored-by: Antonio Cuadros <acuadros1995@gmail.com> (cherry picked from commit 5de3d76) # Conflicts: # .github/workflows/ci.yml
* Minor fixes * Add rmw_wait mutex * Protect static_buffer_memory access * Use new ping API * Update ci.yml * Fix * Fix linter * Apply suggestions from code review Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> * Fix * Delete old unlock mutex * Update .github/workflows/ci.yml Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> Co-authored-by: Antonio Cuadros <acuadros1995@gmail.com> (cherry picked from commit 5de3d76) # Conflicts: # .github/workflows/ci.yml
✅ Backports have been createdDetails
Hey, I reacted but my real name is @Mergifyio |
* Multithread improvements (#205) * Minor fixes * Add rmw_wait mutex * Protect static_buffer_memory access * Use new ping API * Update ci.yml * Fix * Fix linter * Apply suggestions from code review Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> * Fix * Delete old unlock mutex * Update .github/workflows/ci.yml Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> Co-authored-by: Antonio Cuadros <acuadros1995@gmail.com> (cherry picked from commit 5de3d76) # Conflicts: # .github/workflows/ci.yml * Resolve conflicts Signed-off-by: Pablo Garrido <pablogs9@gmail.com> Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
* Multithread improvements (#205) * Minor fixes * Add rmw_wait mutex * Protect static_buffer_memory access * Use new ping API * Update ci.yml * Fix * Fix linter * Apply suggestions from code review Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> * Fix * Delete old unlock mutex * Update .github/workflows/ci.yml Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> Co-authored-by: Antonio Cuadros <acuadros1995@gmail.com> (cherry picked from commit 5de3d76) # Conflicts: # .github/workflows/ci.yml * Resolve conflicts Signed-off-by: Pablo Garrido <pablogs9@gmail.com> Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
Required: eProsima/Micro-XRCE-DDS-Client#289